package com.why.serviceedu.client;

import com.why.commonresults.Result;
import com.why.serviceedu.client.Impl.VodclentIml;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @program: guli_parent
 * @description:
 * @author: @why
 * @create: 2021-02-07 16:00
 **/
//@Component
//service-vod 微服务的名字
@FeignClient(value = "service-vod",fallback = VodclentIml.class)
public interface VodClient {

    /**
     * 写想要调用的方法
     * 注意要加上完全路径！
     *
     * @param id
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteVideo/{id}")
    public Result deleteVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deleteVideos")
    public Result deleteVideos(@RequestParam("videoIds") List<String> videoIds);


}
